<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1>GET</h1>
    <script type="module">
      export { get } from "./xhr.js";

      get("http://127.0.0.1:3000/users", {
        timeout: 100,
        onprogress: function () {
          console.log("onprogress");
        },
        parmas: { name: "jack" },
        headers: {
          token:
            "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiamFjayIsImVtYWlsIjoiamFja0BxcS5jb20iLCJleHAiOjE3MDA3OTQzNTksImlhdCI6MTcwMDc5MDc1OX0.csayTVIn3d_hHnAyBiTX_tvQKCeUs-k3caZWmUuDxKA",
        },
      })
        .then((data) => {
          console.log(data);
        })
        .catch((err) => {
          console.log(err);
        });
    </script>
  </body>
</html>
